﻿<?php
$shop = new Shop();
$shop->checkUser();//检查用户合法性，防止攻击

$info = $shop->getOrderById($pram[0]);
if(!$info)echo "<script type='text/javascript'>location.href='/home';</script>";
$total = $info['total']+$info['freight'];

switch($info['express']){
	case 'express':$type='快递';break;
	case 'post':$type='平邮';break;
	case 'ems':$type='EMS';break;
}
$addinfo = $info['address']['addressee'].'&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;'.$info['address']['phone_number'].'&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;'.$info['address']['province'].'&nbsp;&nbsp;&nbsp;'.$info['address']['city'].'&nbsp;&nbsp;&nbsp;'.$info['address']['area'].'&nbsp;&nbsp;&nbsp;'.$info['address']['address'].'&nbsp;&nbsp;&nbsp;配货方式：'.$type;
$aliadd = $info['address']['province'].$info['address']['city'].$info['address']['area'].$info['address']['address'];

//var_dump($info);

?>